home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / misc / vahunz.lha / vahunz / example / older.c < prev    next >
C/C++ Source or Header  |  1998-02-09  |  367b  |  20 lines

  1. /*
  2.  * older.c - functions to let a person grow older
  3.  */
  4.  
  5. #include <stdio.h>
  6.  
  7. /* This will include the prototypes, so they will be validated.
  8.  * The program would also compile without this include, but it
  9.  * is good style to have it here. */
  10. #include "older.h"
  11.  
  12. void grow_older(char *name, int *age)
  13. {
  14.     printf("%s grows older.\n", name);
  15.  
  16.     *age = *age + 1;
  17. }
  18.  
  19.  
  20.